﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>大公</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}">
    <style>
        .tb > table tr:hover {
            background: #0B2A46;
        }
    </style>
</head>
<body>

<div class="wrap">
    <div class="wid_1820">

        <div class="header">
            <p class="tmtext"><span>2017-12-08 &emsp;&emsp;<span>14:39</span></span></p>
            <p><span class="hefont" onclick="toindex()">信用风险定位系统(银行版)</span></p>
            <p><span>用户操作<a th:href="@{/web/add}">  添加  </a></span></p>
        </div>
        <h3 class="title">实时监测-企业名单</h3>
        <div class="content"><img class="guang" th:src="@{/img/title.png}"/>
            <div class="tb tb_left">
                <h3>AAA</h3>
                <table class="table1">
                    <tr class="tb_title">
                        <td>企业名称</td>
                        <td>盈利对利息覆盖能力</td>
                        <td>流动性还本付能力</td>
                        <td>清偿性还本付息能力</td>
                        <td>操作</td>
                    </tr>
                    <tr th:each="company:${AAACompany}">
                        <td th:text="${company.name}"></td>
                        <td th:text="${company.ICR}"></td>
                        <td th:text="${company.LGDP}"></td>
                        <td th:text="${company.IGDP}"></td>
                        <td>
                            <a th:href="'/web/edit/'+${company.name}">编辑</a>
                            <a th:href="'/web/delete/'+${company.name}">删除</a>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tb tb_right">
                <h3>AA+</h3>
                <table class="table1">
                    <tr class="tb_title">
                        <td>企业名称</td>
                        <td>盈利对利息覆盖能力</td>
                        <td>流动性还本付能力</td>
                        <td>清偿性还本付息能力</td>
                        <td>操作</td>
                    </tr>
                    <tr th:each="company:${AAJCompany}">
                        <td th:text="${company.name}"></td>
                        <td th:text="${company.ICR}"></td>
                        <td th:text="${company.LGDP}"></td>
                        <td th:text="${company.IGDP}"></td>
                        <td>
                            <a th:href="'/web/edit/'+${company.name}">编辑</a>
                            <a th:href="'/web/delete/'+${company.name}">删除</a>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="clear:both"></div>
            <div class="tb tb_left">
                <h3>AA</h3>
                <table class="table1">
                    <tr class="tb_title">
                        <td>企业名称</td>
                        <td>盈利对利息覆盖能力</td>
                        <td>流动性还本付能力</td>
                        <td>清偿性还本付息能力</td>
                        <td>操作</td>
                    </tr>
                    </tr>
                    <tr th:each="company:${AACompany}">
                        <td th:text="${company.name}"></td>
                        <td th:text="${company.ICR}"></td>
                        <td th:text="${company.LGDP}"></td>
                        <td th:text="${company.IGDP}"></td>
                        <td>
                            <a th:href="'/web/edit/'+${company.name}">编辑</a>
                            <a th:href="'/web/delete/'+${company.name}">删除</a>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tb tb_right">
                <h3>AA-及以下</h3>
                <table class="table1">
                    <tr class="tb_title">
                        <td>企业名称</td>
                        <td>盈利对利息覆盖能力</td>
                        <td>流动性还本付能力</td>
                        <td>清偿性还本付息能力</td>
                        <td>操作</td>
                    </tr>
                    <tr th:each="company:${ACompany}">
                        <td th:text="${company.name}"></td>
                        <td th:text="${company.ICR}"></td>
                        <td th:text="${company.LGDP}"></td>
                        <td th:text="${company.IGDP}"></td>
                        <td>
                            <a th:href="'/web/edit/'+${company.name}">编辑</a>
                            <a th:href="'/web/delete/'+${company.name}">删除</a>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script th:src="@{/libs/jquery-1.12.4.min.js}" type="text/javascript" charset="utf-8"></script>
<script th:src="@{/js/index.js}" type="text/javascript" charset="utf-8"></script>
<script>
    $(".tb>table tr").click(function () {
        if ($(this).find("td").eq(0).html() !=null ) {
            const Object = $(this).find("td").eq(0).html();
            window.location.href = "sanlian/"+Object;
        }
    });
</script>